package cn.qiyu5522.controller;


import cn.qiyu5522.domain.entity.ResponseResult;
import cn.qiyu5522.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 分类表 前端控制器
 * </p>
 *
 * @author Tonkey
 * @since 2024-04-10
 */
@Api(tags = "博客分类相关接口")
@RestController
@RequestMapping("/category")
public class CategoryController {

    @Resource
    private CategoryService categoryService;

    @ApiOperation(value = "博客分类列表",notes = "获取博客全部分类")
    @GetMapping("/getCategoryList")
    public ResponseResult categoryList(){
        return categoryService.getCategoryList();
    }


}
